Scenario #9221: Newly Created Account for New Natural Person Should Be Able to View That Person

Properties

Required

Given

name value
subjectName xyz-peter.newman

Expected

name value
personFamilyName Newman
personGivenName Peter

personUuid

HTTP GET "/api/hs/accounts/accounts" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<xyz-peter.newman>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "242a0003-0000-0000-0000-000000000003", // Account: xyz-peter.newman
  "person" : {
    "uuid" : "7f207c26-2d88-4863-9bbf-84d4b4bbd7c4", // Person: Peter Newman
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : "Hallo",
    "title" : null,
    "givenName" : "Peter",
    "familyName" : "Newman"
  },
  "subject" : {
    "uuid" : "242a0003-0000-0000-0000-000000000003", // Account: xyz-peter.newman
    "name" : "xyz-peter.newman",
    "type" : "USER"
  },
  "globalUid" : 21012,
  "globalGid" : 21012
} ]

Fetch the account for the current subject to resolve the related person.

View Own Person

HTTP GET "/api/hs/office/persons/7f207c26-2d88-4863-9bbf-84d4b4bbd7c4" // Person: Peter Newman \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<xyz-peter.newman>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "7f207c26-2d88-4863-9bbf-84d4b4bbd7c4", // Person: Peter Newman
  "personType" : "NATURAL_PERSON",
  "tradeName" : null,
  "salutation" : "Hallo",
  "title" : null,
  "givenName" : "Peter",
  "familyName" : "Newman"
}

generated on 2026-07-17 01:42:19 for branch